#公共断言方法
def assertdata(res,status_code,success,code,message):
    print("实际结果",res.json())
    assert res.status_code == status_code
    assert res.json()['success'] == success
    assert res.json()['code']==code
    assert res.json()['message']==message